include_directories(${PROJECT_SOURCE_DIR}/test)

pkg_dependency(EXTERNAL_LIBS glib-2.0 REQUIRED)

set(TEST_SOURCES
    unittest.c
    scanner.c
    structures.c
    #    parser.c
)

set(TEST_DRIVER
    driver.c
)

add_executable(test_${PROJECT_NAME} ${TEST_SOURCES} ${TEST_DRIVER})

target_link_libraries(test_${PROJECT_NAME} ${EXTERNAL_LIBS} ${LANG_LIB}_static gmp)

add_custom_target(test test_${PROJECT_NAME} DEPENDS test_${PROJECT_NAME})
